<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import util from '@/libs/util'
export default {
  name: 'app',
  watch: {
    '$i18n.locale': 'i18nHandle',
  },
  created() {
    this.i18nHandle(this.$i18n.locale)
  },
  methods: {
    i18nHandle(val, oldVal) {
      util.cookies.set('lang', val)
      document.querySelector('html').setAttribute('lang', val)
    },
  },
}
</script>

<style lang="scss">
@import '~@/assets/style/public-class.scss';

.aside-container {
  position: relative;
  height: 100%;
  width: 220px;
  border: none;
  box-sizing: border-box;
  margin-left: 10px;
  overflow-y: auto;
  border: 1px solid #cfd7e5;
  background: rgba(255, 255, 255, 0.8);
  .d2-container-card-bs {
    right: 0 !important;
    .d2-container-card-bs__body .d2-container-card-bs__body-card {
      padding: 10px !important;
      border: none !important;
      background: none !important;
      .el-form-item {
        margin-bottom: 0;
        .el-form-item__label {
          padding-bottom: 0;
        }
      }
    }
  }
}
.main-container {
  left: 240px !important;
  .el-pagination {
    text-align: right;
    margin: 20px 0;
  }
}
</style>
